/**
 * Copyright (c) 2002-2011 旭鸣信息
 * All rights reserved. 
 * File：SysServerCfgService.java
 * History:
 *       Apr 16, 2012: Initially created, liuzhi.
 */
package com.xteam.ecsystem.service.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xteam.ecsystem.dao.ISysServerCfgDao;
import com.xteam.ecsystem.entities.SysServerConfig;

/**
 * 服务端配置业务管理层
 * @author liuzhi
 *
 */
@Service
public class SysServerCfgService {
	
	@Autowired
	private ISysServerCfgDao sysServerCfgDao;
	
	/**
	 * 获得服务端配置数据对象
	 * @author liuzhi 2013-12-18
	 * @return
	 */
	public SysServerConfig getSysServerCfg(){
		return this.sysServerCfgDao.getSysServerCfg();
	}

	/**
	 * 保存服务端配置
	 * @author liuzhi 2013-12-19
	 * @param serverCfg
	 */
	public void saveSysServerCfg(SysServerConfig serverCfg) {
		this.sysServerCfgDao.saveSysServerCfg(serverCfg);
	}
	
}
